import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import java.awt.BorderLayout;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class Frm extends JFrame implements ActionListener{

    private JButton jb;
    public Frm()
    {
        this.setSize(300, 100);
        this.setLocation(400, 500);
        jb=new JButton("词频统计");
        this.add(jb);
        jb.addActionListener(this);//加入事件监听
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setVisible(true);
        
    }

   
    public void actionPerformed(ActionEvent e) {
			this.dispose();
            new Login();
        
    }
 
}
